import 'package:flutter/material.dart';

class ImageCase extends StatelessWidget {
  const ImageCase({super.key});
  
  @override
  Widget build(BuildContext context) {
    return Container(
      width: 200,
      height: 400,
      decoration: BoxDecoration(
        color: Colors.green,
      //圆角背景图
        borderRadius: BorderRadius.circular(200/2),
        //背景图写法
        image: const DecorationImage(
          image: NetworkImage(
            'https://ts1.tc.mm.bing.net/th?id=ORMS.91546991bf31f397a59c6499c017c655&pid=Wdp&w=612&h=304&qlt=90&c=1&rs=1&dpr=1.3499999046325684&p=0'
            ),
          fit: BoxFit.cover,
        ),
      ),
      child: Column(
        children: [
            //原型裁剪
ClipOval(
  child: Image.network(
    'https://ts1.tc.mm.bing.net/th?id=ORMS.91546991bf31f397a59c6499c017c655&pid=Wdp&w=612&h=304&qlt=90&c=1&rs=1&dpr=1.3499999046325684&p=0',
  fit: BoxFit.cover,
    width:100,
    height: 100,
  ),

),
//圆角拆切
ClipRRect(
    borderRadius: BorderRadius.circular(30),
  child: Image.network('https://ts1.tc.mm.bing.net/th?id=ORMS.91546991bf31f397a59c6499c017c655&pid=Wdp&w=612&h=304&qlt=90&c=1&rs=1&dpr=1.3499999046325684&p=0',
  fit: BoxFit.cover,
width:100,
height: 100,
  ),

),
Image.asset('assets/open_eyes.png',
width: 100,
height: 100,
fit: BoxFit.cover,
),

        ],
      ),
      
    );
  }

}